package com.symria.server.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * AdOperator entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "AD_OPERATOR", catalog = "mini_push")
public class AdOperator implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer adId;
	private String operator;

	// Constructors

	/** default constructor */
	public AdOperator() {
	}

	/** full constructor */
	public AdOperator(Integer adId, String operator) {
		this.adId = adId;
		this.operator = operator;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "AD_ID")
	public Integer getAdId() {
		return this.adId;
	}

	public void setAdId(Integer adId) {
		this.adId = adId;
	}

	@Column(name = "OPERATOR", length = 20)
	public String getOperator() {
		return this.operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

}